#include <iostream>
using namespace std;
class CPolygon
{
protected:
	int width, height;
public:
	CPolygon (int a);
	void setValues (int a, int b);
};
class CRectangle:public CPolygon
{
public:
	CRectangle (int w, int h);
	int area ();
};